package com.inspur.dgov.tenant.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 租户信息
 *
 * @author chiyupei
 * @version 1.0
 * @since 1.0
 */
@Data
@TableName("pub_tenant")
@ApiModel(value="PubTenant对象", description="租户信息")
public class PubTenant implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户ID")
    @TableId("ID")
    private Long id;

    @ApiModelProperty(value = "租户编码")
    @TableField("CODE")
    private String code;

    @ApiModelProperty(value = "租户名称")
    @TableField("NAME")
    private String name;

    @ApiModelProperty(value = "租户简称")
    @TableField("SHORT_NAME")
    private String shortName;

    @ApiModelProperty(value = "开发者ID(冗余)")
    @TableField("DEVELOPER_ID")
    private Long developerId;

    @ApiModelProperty(value = "所属区划ID")
    @TableField("REGION_ID")
    private Long regionId;

    @ApiModelProperty(value = "所属区划名称")
    @TableField("REGION_NAME")
    private String regionName;

    @ApiModelProperty(value = "所属行业大类")
    @TableField("INDUSTRY1")
    private String industry1;

    @ApiModelProperty(value = "所属行业小类")
    @TableField("INDUSTRY2")
    private String industry2;

    @ApiModelProperty(value = "联系地址")
    @TableField("ADDRESS")
    private String address;

    @ApiModelProperty(value = "邮政编码")
    @TableField("POSTAL")
    private String postal;

    @ApiModelProperty(value = "联系人")
    @TableField("CONTACT")
    private String contact;

    @ApiModelProperty(value = "联系人手机")
    @TableField("CONTACT_MOBILE")
    private String contactMobile;

    @ApiModelProperty(value = "联系人邮箱")
    @TableField("CONTACT_EMAIL")
    private String contactEmail;

    @ApiModelProperty(value = "域名")
    @TableField("DOMAIN_NAME")
    private String domainName;

    @ApiModelProperty(value = "租户状态(1:有效 0:无效)")
    @TableField("STATUS")
    private String status;

    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "审核状态(0:未审核 1:审核通过 2:待审核 3:审核未通过)")
    @TableField("STATE")
    private String state;

    @ApiModelProperty(value = "创建者")
    @TableField("CREATOR")
    private Long creator;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("UPDATOR")
    private Long updator;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}
